package holder

import "device_mq_handler/pkg/amqps"

var handleHolder = map[int64]amqps.MessageHandler{}

func RegisterHandler(workId int64, handler amqps.MessageHandler) {
	handleHolder[workId] = handler
}

func GetHandler(workId int64) amqps.MessageHandler {
	return handleHolder[workId]
}
